package com.server.mapper;


import com.pojo.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper {
    public List<Article> getArticleList();
    Article findArticleById(Integer id);

    Integer insertArticle(Article article);

    List<Article> selectArticleByTitle(String title);

    List<Article> selectByUserId(Integer userId);

    Integer delById(Integer id);
}
